package com.zhangtai.modules.entity.security;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-08-17 17:50:06
 */
@Data
@TableName("tb_security")
public class SecurityEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "security_id", type = IdType.AUTO)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long securityId;
    /**
     *
     */
    @ApiModelProperty(value = "方案名称")
    private String securityName;
    /**
     * 删除标识 0：未删除 1：已删除
     */
    @ApiModelProperty(value = "删除标识 0：未删除 1：已删除")
    private Integer isDelete;
    /**
     *
     */
    @ApiModelProperty(value = "缴纳地")
    private String cityName;
    /**
     * 缴纳单位全称
     */
    @ApiModelProperty(value = "缴纳单位全称")
    private String unitName;
    /**
     * 状态 0：启用  1：停用
     */
    @ApiModelProperty(value = "状态 0：启用  1：停用")
    private Integer status;
    /**
     * 参保人数
     */
    @ApiModelProperty(value = "参保人数")
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long number;
    /**
     * 缴纳单位ID
     */
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long unitId;

    /**
     * 类型 0：社保 1：公积金
     */
    private Integer type;

    /**
     * 主体id
     */
    @ApiModelProperty(value = "主体id")
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long contractMainId;

}
